package com.shop.feign.factory;

import com.shop.bean.Shop;
import com.shop.feign.ShopFeign;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import shopBean.common.Enum.StatusAll;
import shopBean.common.bean.RestResult;

@Component
public class ShopFeignFactory implements FallbackFactory<ShopFeign> {

    @Override
    public ShopFeign create(Throwable cause) {
        return new ShopFeign() {


            @Override
            public RestResult insert(Shop shop) {
                // TODO Auto-generated method stub
                return null;
            }

            public RestResult<Shop> getShopById(String id) {
                return null;
            }

            @Override
            public RestResult<Shop> updateStatusById(String id, StatusAll status) {
                return null;
            }
        };

    }

}
